package com.zzcoder.mall.data.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@ApiModel(value = "购物车清单项")
@Data
@Table
@Entity
public class OmsCartItem extends BaseEntity {
    @ApiModelProperty(value = "会员ID")
    @Column
    private Long memberId;

    @ApiModelProperty(value = "商品ID")
    @Column
    private Long productId;

    @ApiModelProperty(value = "商品名称")
    @Column
    private String productName;

    @ApiModelProperty(value = "商品图片")
    @Column
    private String productImgUrl;

    @ApiModelProperty(value = "购买数量")
    @Column
    private Long quantity;

    @ApiModelProperty(value = "商品价格")
    @Column
    private Double price;
}
